﻿#include"Maze.h"

void HideCursor()
{
	HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO curinfo;
	GetConsoleCursorInfo(handle, &curinfo);
	curinfo.bVisible = false;
	SetConsoleCursorInfo(handle, &curinfo);
}

int main()
{
	HideCursor();
	Setpos(17, 2);
	std::cout << "●是你自己， □是箱子， ○是墙壁";
	Setpos(17, 3);
	std::cout << "ESC 重开，F1 推箱子,";
	Setpos(17, 4);
	std::cout << "↑ . ↓ . ← . → 分别控制移动";
	Setpos(17, 5);
	std::cout << "萤 是公主，花 是终点";
	Setpos(17, 6);
	std::cout << "任务：为公主开辟一条可以在摘花的道路";
	Setpos(17, 7);
	std::cout << "PS：你自己也不能挡着";
again:

	Maze m(1);
	if (!m.Game())
	{
		goto again;
	}



	getchar();
	return 0;
}



